<div class="artCon">
	<div class="bigArt">
		<div id="menuContent" class="menuContent" style="display:none; position: absolute;border: 1px solid #09f;width:313px;overflow:auto;;background-color:#FFFFFF;height:150px;">
			<ul id="treeDemo" class="ztree"></ul>
		</div>
		<form class="form-horizontal" id="mainForm" action="/${orgi}/design/event/${parentid!''}/selreportdo/${jobid!''}.html" method="post" data-toggle="ajax-form" data-target="#reportTree">
		<input type="hidden" name="userDefined" id="userDefined" value="">
		<div class="artMain artOther">
			<#include "selmainreport.html"/>
        </div>
        <div class="bottomBg">
            <div class="btnWrap">
                <a href="javascript:$('#mainForm').submit()" class="btnStyle1">保存</a>
                <input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
            </div>
        </div>
		</form>
    </div>
</div>
<script type="text/javascript">
	var setting = {
		view: {
			dblClickExpand: false
		},
		data: {
			simpleData: {
				enable: true
			}
		},
		callback: {
			onClick: onClick
		}
	};
	var zNodes =[
		{ id:'0', pId:0, name:"公共文件夹", open:true, icon:"/assets/images/icon-file-closed.png",click:"loadURL('/${orgi}/design/event/${parentid!""}/selreportdic/0.html','#cubeList',function(){hideMenu();})"}
		<#if dicList??>
		<#list dicList as dic>
		,{ id:"${dic.id!''}", pId:"${dic.parentid!''}", name:"${dic.name!''}", icon:"/assets/images/icon-file-closed.png",click:"loadURL('/${orgi}/design/event/${parentid!""}/selreportdic/${dic.id!''}.html','#cubeList',function(){hideMenu();})"}
		</#list>
		</#if>
	 ]; 
	 $(document).ready(function(){
		$.fn.zTree.init($("#treeDemo"), setting, zNodes);
		if($('#paramtext').length >0 && $('#paramtext').attr("data-report")!=null && $('#paramtext').attr("data-report")!=""){
			$("#reptname").val($('#paramtext').attr("data-report"));
			$("#reptname").attr("readonly","readonly");
			$("#userDefined").val("userDefined");
		}
	});
	
	
</script>